const express = require("express");
const app = express();
app.use(express.static(__dirname));
app.use(function(req,res,next){
	res.set("Access-Control-Allow-Origin","*");
	res.set("Access-Control-Allow-Headers","*");
	next();
})
app.get("/info",(req,res)=>{
	setTimeout(function(){
		res.json({
			ok:1,
			msg:"get->info->ok"
		})
		
	},5000)
	
	
	
})
app.post("/info",(req,res)=>{
	res.json({
		ok:1,
		msg:"post->info->ok"
	})
})
app.listen(80,()=>{
	console.log("success");
})